<?php /* Smarty version 2.6.26, created on 2013-03-21 10:50:51
         compiled from msearch_muti.html */ ?>
<?php if (( $this->_tpl_vars['beginopen'] )): ?>
<div id="dialogsearpanel">
<form name = "fmseam">
<input type="text" name="name" value="<?php echo $this->_tpl_vars['nameval']; ?>
" class="text" />&nbsp;
<button type="button" class="btn_filtermuti" id="idbtn_filtermuti"  >絞込</button>
</form>
</div>
<div id = "diologlistmuti">
<?php endif; ?>
	<div class="serach_pageing">
		<p align="left" ><?php echo $this->_tpl_vars['pageing']; ?>
</p>
	</div>
	<div id="serach_result_muti" class="serach_result">
		<table style="width:100%">
	<?php if (( $this->_tpl_vars['paraname'] == 'ins_shop' )): ?>	
		<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['member'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['member']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
        $this->_foreach['member']['iteration']++;
?>
		<tr class='selmuti'><td><a href="javascript:li_addm('<?php echo $this->_tpl_vars['v']['ins_shop_cd_para']; ?>
','<?php echo $this->_tpl_vars['v']['ins_shop_name_para']; ?>
')" style='color:blue'><?php echo $this->_tpl_vars['v']['ins_shop_cd_disp']; ?>
&nbsp;&nbsp;<?php echo $this->_tpl_vars['v']['ins_shop_name']; ?>
</a></td>
		<td><?php echo $this->_tpl_vars['v']['local_name']; ?>
<?php if (( $this->_tpl_vars['v']['cnt'] > 0 )): ?> <a href='javascript:dsp_shop("<?php echo $this->_tpl_vars['v']['shopnames']; ?>
")' style='color:blue'> [<?php echo $this->_tpl_vars['v']['cnt']; ?>
]</a><?php endif; ?>
		</td><td><?php echo $this->_tpl_vars['v']['media_name']; ?>
</td></tr>
		<?php endforeach; endif; unset($_from); ?>
	<?php elseif (( $this->_tpl_vars['paraname'] == 'ins_shop_patt' )): ?>
		<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['member'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['member']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
        $this->_foreach['member']['iteration']++;
?> 
		<tr class='selmuti'><td><a href="javascript:li_add('<?php echo $this->_tpl_vars['v']['ins_shop_cd_para']; ?>
','<?php echo $this->_tpl_vars['v']['ins_shop_name_para']; ?>
','<?php echo $this->_tpl_vars['v']['insert_conums']; ?>
','<?php echo $this->_tpl_vars['v']['area_pattern_cd']; ?>
','<?php echo $this->_tpl_vars['v']['pattern_name']; ?>
','<?php echo $this->_tpl_vars['v']['area_adnums']; ?>
','<?php echo $this->_tpl_vars['v']['area_memo']; ?>
','<?php echo $this->_tpl_vars['v']['memo']; ?>
')"
		 style='color:blue'><?php echo $this->_tpl_vars['v']['ins_shop_cd_disp']; ?>
&nbsp;&nbsp;<?php echo $this->_tpl_vars['v']['ins_shop_name']; ?>
</a></td>
		<td><?php echo $this->_tpl_vars['v']['local_name']; ?>
<?php if (( $this->_tpl_vars['v']['cnt'] > 0 )): ?> <a href='javascript:dsp_shop("<?php echo $this->_tpl_vars['v']['shopnames']; ?>
")' style='color:blue'> [<?php echo $this->_tpl_vars['v']['cnt']; ?>
]</a><?php endif; ?>
		</td><td><?php echo $this->_tpl_vars['v']['media_name']; ?>
</td></tr>
		<?php endforeach; endif; unset($_from); ?>
	<?php elseif (( $this->_tpl_vars['paraname'] == 'map_shop' )): ?>
		<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['member'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['member']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
        $this->_foreach['member']['iteration']++;
?>
		<tr class="selmuti"><td><a href="javascript:li_a_map('<?php echo $this->_tpl_vars['v']['shop_cd']; ?>
','<?php echo $this->_tpl_vars['v']['shop_name']; ?>
','<?php echo $this->_tpl_vars['v']['smx']; ?>
')" style="color:blue"><?php echo $this->_tpl_vars['v']['shop_cd']; ?>
&nbsp;&nbsp;<?php echo $this->_tpl_vars['v']['shop_name']; ?>
</a></td><td><?php echo $this->_tpl_vars['v']['local_name']; ?>
</td></tr>
		<?php endforeach; endif; unset($_from); ?>
	<?php elseif (( $this->_tpl_vars['paraname'] == 'service' )): ?>
		<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['member'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['member']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
        $this->_foreach['member']['iteration']++;
?>
		<tr class="selmuti"><td><a href="javascript:li_a_map('<?php echo $this->_tpl_vars['v']['mservice_cd']; ?>
','<?php echo $this->_tpl_vars['v']['mservice_name']; ?>
','')" style="color:blue"><?php echo $this->_tpl_vars['v']['mservice_cd']; ?>
&nbsp;&nbsp;<?php echo $this->_tpl_vars['v']['mservice_name']; ?>
</a></td></tr>
		<?php endforeach; endif; unset($_from); ?>
	<?php else: ?>
		<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['member'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['member']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
        $this->_foreach['member']['iteration']++;
?>
		<tr class="selmuti"><td><a href="javascript:li_addm('<?php echo $this->_tpl_vars['v']['shop_cd']; ?>
','<?php echo $this->_tpl_vars['v']['shop_name']; ?>
')" style="color:blue"><?php echo $this->_tpl_vars['v']['shop_cd']; ?>
&nbsp;&nbsp;<?php echo $this->_tpl_vars['v']['shop_name']; ?>
</a></td><td><?php echo $this->_tpl_vars['v']['local_name']; ?>
</td></tr>
		<?php endforeach; endif; unset($_from); ?>
	<?php endif; ?>
		</table>
	</div>
<?php if (( $this->_tpl_vars['beginopen'] )): ?>
</div>
<div id = "diologselectedmuti">
	<ul id="pop_ul" class="item_pop_ul"> </ul>
</div>

<script type="text/javascript">

$('.btn_filtermuti').click(function(){
	var urlPara = makeMutiSearchURL('<?php echo $this->_tpl_vars['paraname']; ?>
', document.fmseam.name.value); 
	urlPara = urlPara + "&sear=1"
	$("#diologlistmuti").load(urlPara);
});


function dsp_shop(val) {
	alert(val.replace(/,/g , "\n"));

}

function toPageS(thepage) {
	var urlPara = makeMutiSearchURL('<?php echo $this->_tpl_vars['paraname']; ?>
', document.fmseam.name.value); 
	urlPara = urlPara + "&page=" + thepage;
	urlPara = urlPara + "&sear=1"
	$("#diologlistmuti").load(urlPara);
}
$('input').keypress(function(ev) {
	if ((ev.which && ev.which === 13) || (ev.keyCode && ev.keyCode === 13)) {
		$("#idbtn_filtermuti").trigger("click") 
		return false;
	} else {
		return true;
	}
});
function li_addm(inID, inVal) {
	
	li_add("pop",inID, inVal);
}
document.fmseam.name.focus();
</script>
<?php endif; ?>

	